function compareOptionValues(a, b) 
{ 
	var sA = parseInt( a.value, 36 );  
	var sB = parseInt( b.value, 36 );  
	return sA - sB;
}

function compareOptionText(a, b) 
{ 
	var sA = parseInt( a.text, 36 );  
	var sB = parseInt( b.text, 36 );  
	return sA - sB;
}

function moveDualList(srcList, destList) 
{
	if ((srcList.selectedIndex == -1))
	{
	    return;
	}
	for (i = 0; i < srcList.options.length; i++)
    {
        if ((srcList.options[i] != null) && (srcList.options[i].selected))
        {
            oOption = srcList.removeChild(srcList.options[i]);
            destList.appendChild(oOption);
            i--;
        }
    }
}